package com.hc.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * @author hecai
 * @date 2021/12/20 9:29
 */

/**
 * 评论标签关系表
 */
@ApiModel(value = "com-hc-domain-CommentTag")
@Getter
@Setter
@ToString
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_comment_tag")
public class CommentTag implements Serializable {
    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "编号")
    private Integer id;

    /**
     * 评论编号
     */
    @TableField(value = "comment_id")
    @ApiModelProperty(value = "评论编号")
    private Long commentId;

    /**
     * 标签编号
     */
    @TableField(value = "tag_id")
    @ApiModelProperty(value = "标签编号")
    private Integer tagId;

    private static final long serialVersionUID = 1L;
}